﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Tool.hbm2ddl;
using Rhino.Commons;

namespace WineCellar.Security.Setup
{
    public class Program
    {
        static void Main(string[] args)
        {
            var container = new RhinoContainer(@"..\..\Windsor.boo");
            IoC.Initialize(container);
            using (UnitOfWork.Start())
            {
                var export = new SchemaExport(CaptureConfiguration.cfg);
                export.SetOutputFile(@"D:\OSS\WineCellarManagerASPNETMVC\WineCellar.Migrator\schemaExport.sql");
                export.Create(false, false);
            }        
        }
    }
}
